#!/usr/bin/env python3
"""
SSH远程控制工具主程序
"""

import sys
import os

# 添加src目录到Python路径
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))

from client import SSHRemoteClient

def main():
    """主函数"""
    try:
        client = SSHRemoteClient()
        client.run()
    except KeyboardInterrupt:
        print("\n程序被用户中断")
    except Exception as e:
        print(f"程序运行错误: {str(e)}")
        sys.exit(1)

if __name__ == "__main__":
    main()

